package earogya.pharmacy.patient;


import java.sql.Time;
import java.util.Date;

/*Class requested treatments
 * 
 * contains the attributes considered when a drug is prescribed to a patient
 * 
 * 
 * */

public class Requested_Treatments {
	private int patientId;
	private int requestId;
	private int drugId;
	private int quantity;
	private int prescribedByID;
	private int prescriptionNo;
	private boolean allowSubstitutes;
	private int minAmount;				//min waight of pill, min volume of the injaction, etc
	private int maxAmount;				//max  waight of pill, min volume of the injaction, etc
	private String amountUnits;			//units, mg,ml,etc
	private String dosage;				// give this no of pills, injections 
	private Date requestDate;
	private Time requestTime;
	
	
	public Requested_Treatments(){
		
	}
	
	public Requested_Treatments(int requestId, int drugId, int quantity, String dosage){
		this.drugId = drugId;
		this.quantity = quantity;
		this.requestId = requestId;
		this.dosage = dosage;
	}
	
	public Requested_Treatments(int drugId, int quantity, String urgency, String unitOrWard, Date requestDate, Time requestTime){
		this.drugId = drugId;
		this.quantity = quantity;
		this.requestDate = requestDate;
		this.requestTime = requestTime;
	}
	
	public Requested_Treatments(int requestId,int drugId, int quantity, String urgency, String unitOrWard, Date requestDate, Time requestTime, int enteredByID, int verifiedByID){
		this.requestId = requestId;
		this.drugId = drugId;
		this.quantity = quantity;
		this.requestDate = requestDate;
		this.requestTime = requestTime;
		this.prescribedByID = enteredByID;
		
	}
	
	
	public void setDrugId(int did){
		drugId = did;
	}
	
	public int getDrugId(){
		return drugId;
	}
	
	public void setQuantity(int qunt){
		quantity = qunt;
	}
	
	public int getQuantity(){
		return quantity;
	}
	
	public void setRequestDate(Date rdate){
		requestDate = rdate;
	}
	
	public Date getRequestDate(){
		return requestDate;
	}
	
	public void setRequestTime(Time rtime){
		requestTime = rtime;
	}
	
	public Time getRequestTime(){
		return requestTime;
	}
	
	public void setRequestId(int rid){
		requestId = rid;
	}
	
	public int getRequestId(){
		return requestId;
	}

	
	public void setMaxAmount(int maxamount){
		maxAmount = maxamount;
	}
	
	public int getMaxAmount(){
		return maxAmount;
	}
	
	public void setMinAmount(int minamount){
		minAmount = minamount;
	}
	
	public int getMinAmount(){
		return minAmount;
	}
		
	public void setAmountUnits(String units){
		amountUnits = units;
	}
	
	public String getAmountUnits(){
		return amountUnits;
	}
	
	
	public int getPrescribedByID() {
		return prescribedByID;
	}

	public void setPrescribedByID(int prescribedByID) {
		this.prescribedByID = prescribedByID;
	}

	public void setDosage(String dose){
		dosage = dose;
	}
	
	public String getDosage(){
		return dosage;
	}
	
	public void setPatientId(int pid){
		patientId = pid;
	}
	
	public int getPatientId(){
		return patientId;
	}
	
	public void setAllowSubstitutes(boolean subs){
		allowSubstitutes = subs;
	}
	
	public boolean getAllowSubstitutes(){
		return allowSubstitutes;
	}
	
	public void setPrescriptionNo(int pno){
		prescriptionNo = pno;
	}
	
	public int getPrescriptionNo(){
		return prescriptionNo;
	}


}
